
--乘区倍率
local function get_mul(rate,count)
    if count<1 then
        return 1
    end
    local min = 10
    local base = math.ceil(rate/min)
    local num = math.floor(base/count)
    local mul = 1 + (rate - num*count*min)*0.01
    
    for a=1,count do
        mul = mul * (1 + num*0.1)
    end
    
    mul = math.ceil(mul*10)*10 - 100
    return mul
end

print('')
print(get_mul(100,5))